<#--组合字段对外展示名称-->
<#include "*/component/Tags.ftl"/>
<#macro CombineDisplayName field isInitial=false>
<#if !field.isCombine>
<@FieldName field=field isInitial=isInitial/>
<#elseif field.combineFields?size == 1>
<#list field.combineFields as relationField >
<@FieldName field=relationField isInitial=isInitial/>
</#list>
<#else><@FieldName field=field isInitial=isInitial/>
</#if>
</#macro>

<#macro CombineParam field showTpye = false><#if !field.isCombine><#if showTpye>${field.type} </#if>${field.name}<#else><#list field.combineFields as relationField><#if showTpye>${relationField.type} </#if>${relationField.name}<#if relationField_has_next>,</#if></#list></#if></#macro>

<#macro CombineValue field><#if !field.isCombine>${field.name}<#elseif (field.combineFields?size == 1)>ColumnUtils.getDeletableUniqueName(<@CombineParam field=field/>)<#else>ColumnUtils.combineColumns(<@CombineParam field=field/>)</#if></#macro>


<#macro HyperCombineValue field prefix='' suffix='' separator=','><#if !field.isCombine><#if prefix!=''>${prefix}${field.capitalizeName}<#else>${field.name}</#if>${suffix}<#else><#list field.combineFields as relationField><#if prefix!=''>${prefix}${relationField.capitalizeName}<#else>${field.name}</#if>${suffix}<#if relationField_has_next>${separator}</#if></#list></#if></#macro>
